package com.study.djl.consumer.controller;

import com.study.djl.consumer.service.ZkService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/zk/")
public class ZkController {

    @Resource
    private ZkService zkService;

    @GetMapping("hello/{name}")
    public String helloZk(@PathVariable String name){
        return zkService.hello(name);
    }
}
